
import 'package:flutter/material.dart';
import 'package:flutter_deer/index/models/user_betting_entity.dart';
import 'package:flutter_deer/widgets/state_layout.dart';

class BettingResultPageProvider extends ChangeNotifier {

  UserBettingResultEntity? _resultEntity;
  UserBettingResultEntity? get resultEntity => _resultEntity;
  StateType? _stateType = StateType.loading;
  StateType? get stateType => _stateType;
  int? get gameLength => _resultEntity!.details!.length;

  void setBettingResultEntity(UserBettingResultEntity? entity){
    _resultEntity = entity;
    _stateType = StateType.empty;
    notifyListeners();
  }

}